import user from "@/api/user.js"
import request from '@/utils/request.js'

// 获取省列表
const getProvinceList = (params = {}) => {
    return request.post('/api/index/getShen', params)
}
//获取群
const getGroupList = (params = {}) => {
    return request.post('/api/index/getQun', params)
}
//加群数据
const getaddqunList = (params = {}) => {
    return request.post('/api/order/getJisuan', params)
}
//获取客服
const getcustomerList = (params = {}) => {
    return request.post('/api/index/getKefu', params)
}
//创建订单
const createOrder = (params = {}) => {
    return request.post('/api/order/createOrder', params)
}
//订单列表
const getOrderList = (params = {}) => {
    return request.post('/api/order/getList', params)
}

//获取海报
const getPoster = (params = {}) => {
    return request.post('/api/user/getposter', params)
}
//获取提现记录

const getWithdrawList = (params = {}) => {
    return request.post('/api/user/getWithdrawList', params)
}
//获取jssdk
const getjssdk = (params = {}) => {
    return request.post('/api/index/getJssdk', params)
}
//获取支付参数
const orderPay= (params = {}) => {
    return request.post('/api/order/pay', params)
}
//申请提现
const getwithdraw= (params = {}) => {
    return request.post('/api/user/withdraw', params)
}
//计算金额
const getJisuan= (params = {}) => {
    return request.post('/api/user/getJisuan', params)
}
//直推订单
const getListByzhitui= (params = {}) => {
    return request.post('/api/order/getListByzhitui', params)
}
//间推订单
const getListByjiantui= (params = {}) => {
    return request.post('/api/order/getListByjiantui', params)
}
//邀请列表
const getTeam= (params = {}) => {
    return request.post('/api/user/getTeam', params)
}
//用户信息
const getUserinfo= (params = {}) => {
    return request.post('/api/user/getData', params)
}
module.exports = {
    user: user,
    getProvinceList: getProvinceList,
    getGroupList:getGroupList,
    getaddqunList:getaddqunList,
	getcustomerList:getcustomerList,
    getOrderList:getOrderList,
	getPoster:getPoster,
	getWithdrawList:getWithdrawList,
	getjssdk:getjssdk,
	createOrder:createOrder,
	orderPay:orderPay,
	getwithdraw:getwithdraw,
	getJisuan:getJisuan,
	getListByzhitui:getListByzhitui,
	getListByjiantui:getListByjiantui,
	getTeam:getTeam,
	getUserinfo:getUserinfo
};